import type { User } from './user'

export interface LoginCredentials {
  username: string
  password: string
  remember?: boolean
}

export interface RegisterData {
  username: string
  email: string
  password: string
  confirmPassword: string
  verificationCode: string
  agreeTerms: boolean
}

export interface ForgotPasswordData {
  email: string
  captcha: string
}

export interface ResetPasswordData {
  token: string
  newPassword: string
  confirmPassword: string
}

export interface AuthResponse {
  token: string
  refreshToken: string
  user: User
}

export interface RefreshTokenResponse {
  token: string
  refreshToken: string
}

export interface Admin {
  username: string
  adminRole?: string
  adminRoleId?: number
}
